package com.pescamillam.consultadeprecioseditor;

import android.content.ContentValues;

public class ProductData {
	public final long KEY_ID;
	public String name;
	public String code;
	public double price;
	
	public ProductData(String name, String code, double price) {
		this.KEY_ID = -1;
		this.name = name;
		this.code = code;
		this.price = price;
	}
	
	public ProductData(long id, String name, String code, double price) {
		this.KEY_ID = id;
		this.name = name;
		this.code = code;
		this.price = price;
	}

	public ContentValues getCV() {
		return StoryCreator.getCVfromStory(this);
	}
}
